package com.oygo.hunter.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

import com.oygo.hunter.decode.DecodeWrapper;
import com.oygo.hunter.utils.AccountUtils;
import com.oygo.hunter.utils.OSUtils;

public class ScreenReceiver extends BroadcastReceiver {

    public void onReceive(Context arg5, Intent arg6) {
        String v6 = arg6.getAction();
        Log.d("cql","receiver");
        if(v6 != null) {
            int v0 = 0xFFFF;
            switch(v6.hashCode()) {
                case 823795052: {
                    if(v6.equals(DecodeWrapper.package_decode1("VDPrTmd2E4IhM/9WWYa3s4zrBOyuZvq+7V30l3TO9MdiHG8c0qpENDLtTbVj6pt3"))) {
                        v0 = 3;
                    }

                    break;
                }
                case 1947666138: {
                    if(v6.equals(DecodeWrapper.package_decode1("VDPrTmd2E4IhM/9WWYa3sz9Mlo6EUZhl+gPWY5o9qDXeLZuWjP/V5n/aeYvKG3EV"))) {
                        v0 = 0;
                    }

                    break;
                }
                case -2128145023: {
                    if(v6.equals(DecodeWrapper.package_decode1("VDPrTmd2E4IhM/9WWYa3s6fM0NWwEEWTeGUb0jfOf9cdGvzzd7oJwGTrFQRC0aP0"))) {
                        v0 = 1;
                    }

                    break;
                }
                case -1454123155: {
                    if(v6.equals(DecodeWrapper.package_decode1("VDPrTmd2E4IhM/9WWYa3s7DzNgrIn3d5swwNBFFY2Do="))) {
                        v0 = 2;
                    }
                }
            }
            //这里处理账户问题
            if(v0 == 0) {
                Log.d("cql","Account init");
                AccountUtils.init(arg5);
            }
            //补充一个powerManager
//            if(v0 == 1) {
//                if(!OSUtils.os_extends()) {
//                    PowerWrapper.float();
//                }
//            }
//            else if(v0 == 2) {
//                PowerWrapper.package();
//                return;
//            }
        }
    }

}
